package com.hnas.sys.orm;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.SequenceGenerator;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * OperateType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_operate_type"

, uniqueConstraints = @UniqueConstraint(columnNames = "operate_type"))
public class ObjectType implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -3607449157953728457L;
	private long id;
	private String objectType;// 实体名称，默认类的名称，如Agreement
	private String objectTypeName;// 业务数据名称，如协议

	// Constructors

	/** default constructor */
	public ObjectType() {
	}

	/** full constructor */
	public ObjectType(String operateType, String operateTypeName) {
		this.objectType = operateType;
		this.objectTypeName = operateTypeName;
	}

	// Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)    
    @Column(name="id",  nullable=false)
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "operate_type", unique = true, length = 50)
	public String getObjectType() {
		return objectType;
	}

	public void setObjectType(String objectType) {
		this.objectType = objectType;
	}

	@Column(name = "operate_type_name")
	public String getObjectTypeName() {
		return objectTypeName;
	}

	public void setObjectTypeName(String objectTypeName) {
		this.objectTypeName = objectTypeName;
	}

}